package com.lovo.roomProject.room.facility.service.impl;

import com.lovo.roomProject.pojo.CutPageBean;
import com.lovo.roomProject.pojo.FacilityDO;
import com.lovo.roomProject.room.facility.dao.FacilityDAO;
import com.lovo.roomProject.room.facility.dao.impl.FacilityDAOImpl;
import com.lovo.roomProject.room.facility.service.FacilityService;

import java.util.List;

public class FacilityServiceImpl implements FacilityService {
    private FacilityDAO facilityDAO=new FacilityDAOImpl();
    @Override
    public CutPageBean listFacilityPage(int current) {
        return facilityDAO.listFacilityPage(current);
    }

    @Override
    public List listFacility(int id) {
        return facilityDAO.listFacility(id);
    }

    @Override
    public void insert(FacilityDO facilityDO) {
        facilityDAO.insert(facilityDO);
    }

    @Override
    public void update(FacilityDO facilityDO) {
        facilityDAO.update(facilityDO);
    }
}
